package org.batatasframework.support.searchable;

import java.util.List;

public class SimpleHeadInfo implements ResultHeadInfo{
	
	protected final String title;
	protected int rowspan = 1;
	protected int colspan = 1;
	
	public SimpleHeadInfo(String title){
		this.title = title;
	}
	
	@Override
	public int getColspan() {
		return colspan;
	}

	@Override
	public int getRowspan() {
		return rowspan;
	}

	@Override
	public String getTitle() {
		return title;
	}

	@Override
	public List<ResultHeadInfo> children() {
		return null;
	}

	@Override
	public void setRowspan(int rowspan) {
		this.setRowspan(rowspan);
		
	}

	@Override
	public void setColspan(int colspan) {
		this.setRowspan(colspan);
		
	}

}
